Provide camel case => underscore conversions for object => dictionary#42
Provide camel case => underscore conversions for object => dictionary#42markshiz wants to merge 4 commits intoaryaxt:masterfrom markshiz:master
Conversation
Right now dictionary from object creation performs a non-optional underscore => camel case conversion, in order to make the library consistent with itself, provide the inverse mapping.
|
Thanks for the PR Methods
|
|
@aryaxt Good thought. I couldn't find that the opposite conversion was optional. It struck me that that should be as well. Do you agree? |
|
+1. |
|
@markshiz Sorry completely forgot to respond to this, but camel case was initially used for OCMapper, and later I added support to check for underscore and handle them if needed @MeGaPk camel case is the convention used in swift and objective c for property names, so as long as you have followed that it should just create keys in camel case same as property names |
|
@aryaxt i mean, convert Object (NSString *helloWorld="asd";) to dict ({"hello_world":"asd"}), for example. |
Right now dictionary from object creation performs a non-optional underscore => camel case conversion, in order to make the library consistent with itself, provide the inverse mapping.